/*
 * compresor.h
 *
 *  Created on: 07/09/2012
 *      Author: guidi
 */

#ifndef COMPRESOR_H_
#define COMPRESOR_H_

#include <iostream>
#include <fstream>
#include <string>
#include "const.cpp"

class Compresor {
public:
	Compresor();
	~Compresor();
	int comprimir(std::ifstream* entrada, std::ofstream* salida);

private:
	void procesar();
	std::ifstream* entrada;
	std::ofstream* salida;
	my_char_t actual;
	my_char_t tamanio;

	void flush();
};


#endif /* COMPRESOR_H_ */
